package org.dromara.wmscloud.domain.bo;

import org.dromara.wmscloud.domain.BaseMat;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 物料主数据业务对象 base_mat
 *
 * @author hou
 * @date 2025-04-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseMat.class, reverseConvertGenerate = false)
public class BaseMatBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long matId;

    /**
     * 物料编码
     */
    @NotBlank(message = "物料编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String matCode;

    /**
     * 物料描述
     */
    private String matName;

    /**
     * 财务编码
     */
    @NotBlank(message = "财务编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fdCode;

    /**
     * 图号
     */
    private String figNum;

    /**
     * 物料组
     */
    private String matGroup;

    /**
     * 分类
     */
    private String matClass;

    /**
     * 基本单位
     */
    private String unitCode;

    /**
     * 毛重
     */
    private Long grossWeight;

    /**
     * 安全库存
     */
    private Long safetyStock;

    /**
     * 标准价
     */
    private Long standardPrice;


}
